<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/16
  Time: 15:10
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<html>
<head>
    <title>测试</title>
</head>
<body>
ceshi
<security:authentication property="name"></security:authentication>
<!--动态显示   满足ROLE_ADMIN角色才能看到-->
<security:authorize access="hasRole('USER')">
可以看到
</security:authorize>
</body>
</html>
